package com.tacc.tyun.common.jedis;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 整合jedis，JedisPool
 * @author taocongcong
 * @create 2017-07-07 14:26
 */
@Component("jedisProperties")
@ConfigurationProperties(prefix = "spring.redis")
@Configuration
@PropertySource("classpath:redis.properties")
public class JedisProperties {

    private String host;

    private int port;

    private int maxIdle;

    private int timeout;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getMaxIdle() {
        return maxIdle;
    }

    public void setMaxIdle(int maxIdle) {
        this.maxIdle = maxIdle;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }
}


